Method and apparatus for generating three-dimensional (3d) road model

ABSTRACT

A method for generating a three-dimensional (3D) lane model, the method including calculating a free space indicating a driving-allowed area based on a driving image captured from a vehicle camera, generating a dominant plane indicating plane information of a road based on either or both of depth information of the free space and a depth map corresponding to a front of the vehicle, and generating a 3D short-distance road model based on the dominant plane.

CROSS-REFERENCE TO RELATED APPLICATION(S)

This application is a continuation of U.S. patent application Ser. No.15/452,476 filed on Mar. 7, 2017 which claims the benefit under 35 USC §119(a) of Korean Patent Application No. 1 0-201 6-01 47323 filed on Nov.7, 2016, in the Korean Intellectual Property Office, the entiredisclosures of which are incorporated herein by reference for allpurposes.

BACKGROUND 1. Field

The following description relates to a method and apparatus forgenerating a three-dimensional (3D) road model.

2. Description of Related Art

Navigation technology represents known route information on atwo-dimensional (2D) map or a three-dimensional (3D) map generated inadvance and thus, heretofore has not generally provided a real-timegeneration of a long-distance spatial model. Lane detection technologydetects, for example, white, yellow, and blue lane markings from a 2Dimage captured by a camera and thus, does not generate a 3D road model.Also, a long-distance area converging to a vanishing point in a cameraimage may not have information due to a limitation of the lane detectiontechnology.

SUMMARY

This Summary is provided to introduce a selection of concepts in asimplified form that are further described below in the DetailedDescription. This Summary is not intended to identify key features oressential features of the claimed subject matter, nor is it intended tobe used as an aid in determining the scope of the claimed subjectmatter.

In one general aspect, a method of generating a three-dimensional (3D)lane model, includes calculating a free space indicating adriving-allowed area based on a driving image captured from a vehiclecamera, generating a dominant plane indicating plane information of aroad based on either one or both of depth information of the free spaceand a depth map corresponding to a front of the vehicle, and generatinga 3D short-distance road model based on the dominant plane.

The calculating of the free space may include acquiring the drivingimage from a camera included in the vehicle, generating the depth mapincluding depth information corresponding to a visual field criterion ofthe front of the vehicle, and calculating the free space based on thedriving image and the depth map. The driving image from the cameraincluded in the vehicle may be acquired while driving.

The acquiring of the driving image may include acquiring the drivingimage including at least one of camera information, a black-and-whiteimage, or a color image captured by the camera.

The generating of the depth map may include acquiring the depthinformation using at least one of a radar, a lidar, or a stereo matchingmethod using a stereo camera.

The method may further include extracting road shape informationincluding a surface of the road, a lane marking on the road, and acenter line of the road from the driving image.

The generating of the 3D short-distance road model may includegenerating 3D coordinates based on two-dimensional (2D) coordinates ofvertices configuring the lane marking and depth informationcorresponding to the 2D coordinates of the vertices on the dominantplane, generating 3D lane information by performing inverse projectionon the generated 3D coordinates, and generating the 3D short-distanceroad model based on the 3D lane information.

The extracting of the road shape information may include acquiringlocation information including at least one of current locationinformation of the vehicle or direction information of the vehicle, andextracting the road shape information currently viewed by the camerabased on the location information and camera information included in thedriving image.

The acquiring of the location information may include acquiring thelocation information using at least one of a global positioning system(GPS), an inertial measurement unit (IMU), or a visual odometry method.

The acquiring of the location information may include acquiring travelroute information based on a starting point and a destination of thevehicle from map information, and acquiring location informationincluding at least one of current location information of the vehicle ordirection information of the vehicle based on the travel routeinformation.

The extracting of the road shape information may include extracting roadshape information entering a viewing frustum of the camera from the mapinformation based on the location information and the camera informationincluded in the driving image.

The method may further include generating a 3D long-distance road modelbased on the road shape information and the 3D short-distance roadmodel.

The generating of the 3D long-distance road model may include matchingthe road shape information and the 3D short-distance road model, andprojecting a matching result onto the dominant plane and generating the3D long-distance road model.

The matching may include matching the road shape information and the 3Dshort-distance road model using a least square method (LSM).

The generating of the 3D long-distance road model may include acquiringheight information from the dominant plane, and generating the 3Dlong-distance road model based on the height information, the road shapeinformation, and the 3D short-distance road model.

In another general aspect, an apparatus for generating a 3D road modelincludes a camera configured to capture a driving image from a vehiclecamera, and a processor configured to calculate a free space indicatinga driving-allowed area based on the driving image, generate a dominantplane indicating plane information of a road based on at least one ofdepth information of the free space and a depth map corresponding to afront of the vehicle, and generate a 3D short-distance road model basedon the dominant plane.

The processor may be configured to acquire the driving image from acamera included in the vehicle, generate the depth map including depthinformation corresponding to a visual field criterion of the front ofthe vehicle, and calculate the free space based on the driving image andthe depth map.

The processor may be configured to extract road shape informationincluding a surface of the road, a lane marking on the road, and acenter line of the road from the driving image, generate 3D coordinatesbased on 2D coordinates of vertices configuring the lane marking anddepth information corresponding to the 2D coordinates of the vertices onthe dominant plane, and generate the 3D short-distance road model basedon 3D lane information generated by performing inverse projection on thegenerated 3D coordinates.

The apparatus may further include a memory configured to store mapinformation, and the processor may be configured to acquire locationinformation including at least one of current location information ofthe vehicle or direction information of the vehicle based on travelroute information generated using a starting point and a destination ofthe vehicle from the map information stored in the memory, and extractroad shape information entering a viewing frustum of the camera from themap information based on the location information and the camerainformation included in the driving image.

The processor may be configured to match the road shape information andthe 3D short-distance road model and project a matching result onto thedominant plane and generating the 3D long-distance road model.

Other features and aspects will be apparent from the following detaileddescription, the drawings, and the claims.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 illustrates an example of an augmented reality navigation systemin which a method of generating a three-dimensional (3D) road model isperformed.

FIG. 2 illustrates an example of a method of generating a 3D road model.

FIG. 3 illustrates an example of a method of calculating a free space.

FIG. 4 illustrates an example of a method of generating a 3Dshort-distance road model.

FIG. 5 illustrates an example of a method of generating a 3Dlong-distance road model.

FIG. 6 illustrates an example of generating a 3D road model.

FIG. 7 illustrates an example of generating a 3D road model.

FIG. 8 illustrates an apparatus for generating a 3D road model.

FIG. 9 illustrates an example of a processor in an apparatus forgenerating a 3D lane model.

Throughout the drawings and the detailed description, unless otherwisedescribed or provided, the same drawing reference numerals will beunderstood to refer to the same elements, features, and structures. Thedrawings may not be to scale, and the relative size, proportions, anddepiction of elements in the drawings may be exaggerated for clarity,illustration, and convenience.

DETAILED DESCRIPTION

The following detailed description is provided to assist the reader ingaining a comprehensive understanding of the methods, apparatuses,and/or systems described herein. However, various changes,modifications, and equivalents of the methods, apparatuses, and/orsystems described herein will be apparent after gaining an understandingof the disclosure of this application. For example, the sequences ofoperations described herein are merely examples, and are not limited tothose set forth herein, but may be changed as will be apparent to one ofordinary skill in the art, with the exception of operations necessarilyoccurring in a certain order. Also, descriptions of features, functions,and constructions that are well known to one of ordinary skill in theart may be omitted for increased clarity and conciseness.

The features described herein may be embodied in different forms, andare not to be construed as being limited to the examples describedherein. Rather, the examples described herein have been provided merelyto illustrate some of the many possible ways of implementing themethods, apparatuses, and/or systems described herein that will beapparent after gaining a thorough understanding of the disclosure ofthis application.

Terms such as first, second, A, B, (a), (b), and the like may be usedherein to describe components or features. Each of these terminologiesis not used to define an essence, order or sequence of a correspondingcomponent but used merely to distinguish the corresponding componentfrom other component(s). For example, a first component may be referredto as second component, and similarly the second component may also bereferred to as the first component.

It should be noted that if it is described in the specification that onecomponent is “connected,” “coupled,” or “joined” to another component, athird component may be “connected,” “coupled,” and “joined” between thefirst and second components, although the first component may be shownas directly connected, coupled or joined to the second component.However, it should be noted that if it is described in the specificationthat one component is “directly connected” or “directly joined” toanother component, a third component is not present therebetween.Likewise, expressions, for example, “between” and “immediately between”and “adjacent to” and “immediately adjacent to” may also be construed asdescribed in the foregoing.

The terminology used herein is for the purpose of describing particularembodiments only and is not intended to be limiting. As used herein, thesingular forms “a,” “an,” and “the,” are intended to include the pluralforms as well, unless the context clearly indicates otherwise. It willbe further understood that the terms “comprises,” “comprising,”“includes,” and/or “including,” when used herein, specify the presenceof stated features, integers, steps, operations, elements, and/orcomponents, but do not preclude the presence or addition of one or moreother features, integers, steps, operations, elements, components,and/or groups thereof.

Unless otherwise defined, all terms, including technical and scientificterms, used herein have the same meaning as commonly understood by oneof ordinary skill in the art to which this disclosure pertains. Terms,such as those defined in commonly used dictionaries, are to beinterpreted as having a meaning that is consistent with their meaning inthe context of the relevant art, and are not to be interpreted in anidealized or overly formal sense unless expressly so defined herein.

One or more embodiments generate a three-dimensional (3D) road model inan augmented reality navigation system. One or more embodiments providea road space model, for example, a road surface, a lane, and a centerline in a long distance of at least 100 meters (m) to provide accurateroute information to a user. One or more of the embodiments areapplicable to, for example, a mobile device, a smartphone, anintelligent automobile, and an autonomous driving vehicle. Hereinafter,embodiments will be described with reference to the accompanyingdrawings.

FIG. 1 illustrates an example of an augmented reality navigation systemin which a method of generating a 3D road model is performed. FIG. 1illustrates a view 110 in which an actual road is not matched to aguided driving route and a view 130 in which a long-distance area isinaccurately presented in the augmented reality navigation system.

In general navigation technology, known route information is representedon two-dimensional (2D) map, or other such maps, which may be only berough approximations generated in advance, and an augmented reality (AR)object is not presented in a real image. For this reason, along-distance space model has, heretofore, generally not been applied inthe general navigation technology. In contrast, the augmented realitynavigation system dynamically generates a space model associated with aroad to provide accurate route information to a user. The space modelincludes, for example, a road surface, a lane, and a center line of aroad. When an accurate matching between an actual road image and amodeled road model is not performed in the augmented reality navigationsystem, matching between the actual road and the guided driving route isalso not performed as shown in the view 110.

Also, general lane detection technology heretofore available detects alane colored with, for example, white, yellow, orange, or blue from a 2Dimage captured by a camera and thus, does not generate a 3D road model.In terms of the 2D map not having height information, a ramp is notindicated when it is directly applied to a modeling. Also, due to alimitation of current lane detection technology, it is not possible togenerate a road model in a long distance of 100 m or farther. Thus, asshown in the view 130, it is difficult to generate a road model in arelatively long distance converging to a vanishing point in a cameraimage.

An apparatus, according to an embodiment, for generating a 3D road modelgenerates a dominant plane indicating plane information of a road basedon a lane detection result and depth information and generates a 3Dshort-distance road model. Hereinafter, the apparatus for generating a3D road model is also referred to as a generation apparatus. Also, thegeneration apparatus extracts road shape information from mapinformation, matches the road shape information and 3D short-distanceroad model, projects a result of the matching to the dominant plane, andgenerates a 3D long-distance road model that is beyond a lane detectionrange. In this disclosure, “map information” is understood asinformation indicating topography, land use, water, roads, railroads,buildings, and settlements, such as various types of ground surface andobjects on the ground to be shown on the map. The map informationincludes, for example, address information, GPS coordinates, 3Dinformation indicating x, y, and z coordinates, and 2D informationindicating a latitude and longitude of objects on the ground and variousforms of land shown on the map as well as road shape informationincluding 2D information indicating a latitude and a longitude of a roadsurface, a lane marking on the road, or a center line of the road. Inaddition, “map information” includes a variety of information providedthrough a vehicular navigation system. A method of generating the 3Dshort-distance road model and the 3D long-distance road model using thegeneration apparatus will be described with reference to FIGS. 2 through9. From the map information, the generation apparatus is configured toacquire a route along which a vehicle is to be driven based on roadshape information or GPS coordinates from a point of departure to adestination, or acquire a current location of the vehicle or a drivingdirection of the vehicle. In addition, the generation apparatus isconfigured to extract road shape information corresponding to a drivingroute of the vehicle from the map information and generate a road model.In this disclosure, “lane-detection range” is understood as a range ordistance of about 100 meters (m) approaching a vanishing point in acamera image, and “long-distance road model” is understood as a roadmodel in a distance or an area exceeding such lane-detection range, forexample, 100 m. Also, “extrinsic parameter” of the camera is a termgeneralized in association with a camera calibration and corresponds to,for example, a parameter representing movement, rotation, and seizeconversion in the camera such as a 3D location and 3D postureinformation such as pan, tilt, pitch, yaw, and roll of the camera.Additionally, such “extrinsic parameter” of the camera may correspondto, for example, a relationship between the camera and a photographedsurface such as a focal length and principal point distortioncoefficient.

FIG. 2 illustrates an example of a method of generating a 3D road model.Referring to FIG. 2, in operation 210, a generation apparatus calculatesa free space indicating a driving-allowed area of a vehicle based on adriving image captured from the vehicle during driving. For example, thegeneration apparatus segments the driving image and calculates the freespace from the driving image segmented through machine learning. Also,the generation apparatus calculates the free space based on a depth mapcorresponding to a front of the vehicle and the driving image. The freespace is, for example, an area as further discussed with reference tooperation 730 of FIG. 7.

A method of calculating the free space using the generation apparatusbased on the driving image and the depth map will be described withreference to FIG. 3.

In operation 220, the generation apparatus generates a dominant planeindicating plane information of a road based on at least one of depthinformation included in the free space or the depth map corresponding tothe front of the vehicle. The dominant plane is obtained from a depthmeasurement value of the driving image or a depth value in the depthmap. The dominant plane may be a 3D plane or a 3D curved surface thatrepresents a surface of the road as further discussed with reference tooperation 740 of FIG. 7.

In operation 230, the generation apparatus generates a 3D short-distanceroad model based on the dominant plane. A method of generating the 3Dshort-distance road model using the generation apparatus will bedescribed with reference to FIG. 4.

FIG. 3 illustrates an example of a method of calculating a free space.Referring to FIG. 3, in operation 310, a generation apparatus acquires adriving image using a camera in a vehicle. The driving image includes,for example, camera information, a black-and-white image, and a colorimage captured by the camera in the vehicle during driving. The camerainformation includes, for example, an intrinsic parameter and anextrinsic parameter of the camera.

In operation 320, the generation apparatus generates a depth mapincluding depth information corresponding to a visual field reference infront of the vehicle. The generation apparatus acquires the depthinformation using at least one of, for example, a radar, a lidar, anultrasonic acoustic sonar, and a stereo matching method using a stereocamera. The radar detects an object and measures a distance using aradio wave. The lidar radiates a laser beam and measures a temperature,a humidity, and a visibility in the atmosphere based on reflection andabsorption thereof. Also, the generation apparatus acquires the depthinformation using the stereo matching method using the stereo camera andgenerates the depth map based on the depth information. The depthinformation includes, for example, a depth value.

In operation 330, the generation apparatus calculates the free spacebased on the driving image and the depth map.

FIG. 4 illustrates an example of a method of generating a 3Dshort-distance road model. Referring to FIG. 4, in operation 410, ageneration apparatus generates 3D coordinates based on 2D coordinates ofvertices configuring a lane marking and depth information on a dominantplane corresponding to the 2D coordinates of the vertices. Thegeneration apparatus calculates 2D lane control vertex (CV) coordinatesof vertices configuring a lane marking colored with white, yellow,orange, red, and/or blue in a short distance, that is, coordinates ofvertices on a 2D lane. The colors of interest, according to one or moreembodiments, are selectively set according to legal jurisdiction. Forexample, the specific colors to be evaluated in the image may changebased upon country e.g. Korea, United States, and the like as will beapparent to one of skill in the art after gaining a thoroughunderstanding of the detailed description. The generation apparatusacquires depth information, for example, z information on the dominantplane corresponding to the 2D lane coordinates, from the depth mapcorresponding to the front of the vehicle and generates the 3Dcoordinates.

In operation 420, the generation apparatus generates 3D lane informationby performing an inverse projection on the 3D coordinates generated inoperation 410. The generation apparatus generates the 3D laneinformation including, for example, a 3D lane marking and a 3D centerline.

In operation 430, the generation apparatus generates a 3D short-distanceroad model based on the 3D lane information.

FIG. 5 illustrates an example of a method of generating a 3Dlong-distance road model. Because the descriptions of operations 210through 230 of FIG. 2 are applicable here, repeated descriptions ofoperations 510 through 530 of FIG. 5 will be omitted for clarity andconciseness.

In operation 540, a generation apparatus extracts road shape informationincluding, for example, a surface of a road, a lane marking on the road,and a center line of the road from a driving image. A method in whichthe generation apparatus extracts road shape information is as follows.

The generation apparatus acquires location information including atleast one of current location information of a vehicle or directioninformation of the vehicle. The generation apparatus acquires thelocation information using at least one of, for example: a globalpositioning system (GPS), an inertial measurement unit (IMU), or avisual odometry. Also, the generation apparatus acquires travel routeinformation based on a starting point and a destination from mapinformation. The generation apparatus acquires the location informationincluding at least one of the current location information of thevehicle or the direction information of the vehicle based on the travelroute information.

The generation apparatus extracts road shape information currentlyviewed by a camera based on the location information acquired inoperation 540 and camera information included in the driving image. Thegeneration apparatus extracts road shape information entering a viewingfrustum of the camera from the map information based on the locationinformation and the camera information included in the driving image.

The road shape information is, for example, 2D information representedby a latitude and a longitude, or 3D information represented bypredetermined components x, y, and z. The road shape information is, forexample, white, yellow, and blue lane marking information, a road centerline crossing a center on each lane, or road surface information.

In operation 550, the generation apparatus generates a 3D long-distanceroad model based on the 3D short-distance road model generated inoperation 530 and the road shape information extracted in operation 540.

In operation 550, the generation apparatus matches the road shapeinformation and the 3D short-distance road model. The generationapparatus matches the road shape information and the 3D short-distanceroad model based on, for example, a least square method (LSM). Thegeneration apparatus projects a matching result to the dominant planegenerated in operation 520 and generates the 3D long-distance roadmodel.

In operation 550, the generation apparatus acquires height informationfrom the dominant plane, and generates the 3D long-distance road modelbased on the height information, the road shape information and the 3Dshort-distance road model. In this example, since a 2D map does not havethe height information, the generation apparatus projects 2D coordinatesobtained from the 2D map to the dominant plane and acquires the heightinformation.

FIG. 6 illustrates an example of generating a 3D road model. Referringto FIG. 6, in operation 610, a generation apparatus acquires a drivingimage using a capturing device, for example, a vision sensor and acamera, included in the vehicle during driving. The driving imageincludes, for example, a color image, a black-and-white image, andcamera information.

In operation 620, the generation apparatus detects a 2D lane or a 2Dlane marking from the driving image acquired in operation 610. The 2Dlane detected in operation 620 may be detected in a form of x and ycoordinates in a short-distance area of a road. In operation 620, thegeneration apparatus extracts road shape information including a surfaceof a road and a center line of the road from the driving image inaddition to a lane marking on the road.

In operation 630, the generation apparatus acquires a depth mapcorresponding to a front of a vehicle using any one or any combinationof a stereo camera, an ultrasonic sensor, a lidar, and a radar. Thedepth map is based on, for example, a visual field in an AR system.

In operation 640, the generation apparatus calculates a free spaceindicating a driving-allowed area of the vehicle from the driving imageacquired in operation 610 through, for example, machine learning.

In operation 650, the generation apparatus calculates and generates adominant plane indicating plane information of the road using at leastone of the depth map generated in operation 630 and depth informationincluded in the free space calculated in operation 640. The dominantplane is obtained, for example, from a depth measurement value of thedriving image and may be a plane or a curved surface representing ashape of the surface of the road.

The generation apparatus generates 3D coordinates based on 2Dcoordinates of vertices configuring a lane marking and depth informationon the dominant plane corresponding to the 2D coordinates of thevertices. In operation 660, the generation apparatus generates a 3Dshort-distance road model based on 3D lane information generated byperforming an inverse projection on the 3D coordinates. In this example,the 3D short-distance road model may be generated in a lane detectionlimit distance.

In operation 670, the generation apparatus acquires travel routeinformation based on a starting point and a destination of the vehiclefrom map information. In this example, the generation apparatus acquireslocation information including at least one of current locationinformation of the vehicle or direction information of the vehicle basedon the travel route information.

In operation 680, the generation apparatus extracts road shapeinformation entering a viewing frustum of the camera from the mapinformation or a travel route included in the map information based onthe current location information and the direction information acquiredin operation 670.

In operation 690, the generation apparatus generates a 3D long-distanceroad model by expanding the 3D short-distance road model generated inoperation 660 to a long distance using the road shape informationextracted in operation 680.

FIG. 7 illustrates an example of generating a 3D road model. Referringto FIG. 7, in operation 710, a generation apparatus detects a 2D lane ora 2D lane marking from a driving image acquired by a camera in a vehicleduring driving. In this example, the 2D lane is detected in a form of 2Dcoordinates, for example, (x, y) of vertices configuring a lane markingof a short-distance area on a road.

In operation 720, the generation apparatus generates a depth mapcorresponding to a front of the vehicle. The generation apparatusgenerates the depth map based on a measurement value obtained using aradar or a lidar, or a depth value obtained using a stereo camera.

In operation 730, the generation apparatus calculates a free spaceindicating a driving-allowed area of the vehicle from the driving imagecaptured from the vehicle during the driving. Depending on examples, thegeneration apparatus calculates the free space based on the drivingimage and the depth map.

In operation 740, the generation apparatus generates a dominant planeindicating plane information of a road based on at least one of a depthmap or depth information included in the free space.

In operation 750, the generation apparatus generates 3D lane informationby performing an inverse projection on 2D coordinates of vertices, forexample, coordinates of the 2D lane detected in operation 710 and depthinformation of the dominant plane corresponding to the 2D coordinates.The depth information of the dominant plane corresponding to the 2Dcoordinates may be a z coordinate generated based on 2D lane CVcoordinates.

In operation 760, the generation apparatus generates a 3D short-distanceroad model based on the 3D lane information.

In operation 770, the generation apparatus extracts road shapeinformation and performs matching based on current directioninformation, current location information acquired through a GPS, andcamera information included in the driving image. The generationapparatus extracts the road shape information including a lane and acenter line entering a viewing frustum of the camera from the mapinformation or a travel route of the map information. Also, thegeneration apparatus matches a road shape in a long distance and laneheight information provided from the 3D dominant plane generated inoperation 740, and generates long-distance lane shape information.

In operation 780, the generation apparatus expands the 3D short-distanceroad model generated in operation 760 to a long distance based on theroad shape information extracted in operation 770 and generates a 3Dlong-distance road model that is robust to depth noise.

FIG. 8 illustrates an apparatus for generating a 3D road model.Referring to FIG. 8, an apparatus 800 for generating a 3D road modelincludes a camera 810, a processor 820, a memory 830, and acommunication interface 840. The camera 810, the processor 820, thememory 830, and the communication interface 840 are connected with oneanother through a communication bus 805.

The camera 810 captures a driving image from a vehicle during driving.It is understood that the camera 810 includes, for example, acomplementary metal-oxide-semiconductor (CMOS) image sensor (CIS)camera, an infrared camera, a vision sensor, and other various capturingdevices.

The processor 820 calculates a free space indicating a driving-allowedarea of the vehicle based on a depth map corresponding to a front of thevehicle and the driving image captured by the camera 810. The processor820 acquires the driving image using the camera 810, and generates adepth map including depth information corresponding to a visual fieldreference in front of the vehicle. The processor 820 calculates the freespace based on the driving image. The processor 820 also calculates thefree space based on the driving image and the depth map.

The processor 820 generates a 3D short-distance road model based on adominant plane indicating plane information of a road generated using atleast one of the depth map or the depth information included in the freespace. The processor 820 extracts road shape information including asurface of the road, a lane marking on the road, and a center line ofthe road from the driving image. The processor 820 generates 3Dcoordinates based on 2D coordinates of vertices configuring the lanemarking and depth information on the dominant plane corresponding to the2D coordinates of the vertices. The processor 820 generates 3D laneinformation by performing an inverse projection on the generated 3Dcoordinates and generates the 3D short-distance road model based on the3D lane information.

The memory 830 stores map information. The map information is stored inthe memory 830 in a form of, for example, a map database. The memory 830also stores the road shape information extracted by the processor 820and the short-distance road model generated by the processor 820.

The processor 820 extracts travel route information based on a startingpoint and a destination of the vehicle from the map information storedin the memory 830. The processor 820 acquires location informationincluding at least one of current location information of the vehicle ordirection information of the vehicle based on the extracted travel routeinformation. The processor 820 extracts road shape information enteringa viewing frustum of the camera 810 from the map information based onthe location information and camera information included in the drivingimage.

The processor 820 matches the road shape information to the 3Dshort-distance road model, projects a matching result to the dominantplane, and generates the 3D long-distance road model.

The communication interface 840 transmits the 3D short-distance roadmodel and the 3D long-distance road model generated by the processor 820and the map information to an outside of the generation apparatus. Thecommunication interface 840 receives the map information and othervarious pieces of information. The information received through thecommunication interface 840 is stored in the memory 830.

The memory 830 stores various pieces of information generated in theaforementioned operations of the processor 820. The memory 830 alsostores various types of data and programs. The memory 830 includes avolatile memory or a non-volatile memory. The memory 830 includes ahigh-capacity storage medium such as a hard disk to store various data.For example, the memory 830 stores map data using at least one harddisk.

FIG. 9 illustrates an example of a processor in an apparatus forgenerating a 3D lane model. Referring to FIG. 9, a processor 900 of ageneration apparatus includes an information acquirer 910, a lanedetector 920, a dominant plane generator 930, a road shape informationextractor 940, and a 3D road model generator 950.

The information acquirer 910 acquires a color or black-and-white drivingimage input from a camera in a vehicle during driving. Also, theinformation acquirer 910 acquires camera information such as anintrinsic parameter and an extrinsic parameter of the camera.

The information acquirer 910 acquires a depth value of a front of thevehicle during the driving. The information acquirer 910 calculates thedepth value of the front of the vehicle based on various methods, forexample, a stereo matching method and a radar or lidar-based method andacquires a depth map based on the depth value. Also, the informationacquirer 910 acquires location information and direction information ofthe vehicle during the driving.

The lane detector 920 extracts a surface of a road and a 2D lane fromthe driving image acquired in the information acquirer 910.

The dominant plane generator 930 includes a free space calculator 933and a dominant plane calculator 936. The free space calculator 933calculates a free space indicating a driving-allowed area of the vehicleusing the driving image acquired in the information acquirer 910, or thedriving image and the depth map. The dominant plane calculator 936calculates a dominant plane of the road based on at least one of thedepth map or the free space.

The road shape information extractor 940 extracts road shape informationcurrently viewed by the camera from a map information processor 945based on the location information and the direction information of thevehicle, and the camera information acquired in the information acquirer910.

The 3D road model generator 950 includes a short-distance road modelgenerator 953 and a long-distance road model generator 956.

The short-distance road model generator 953 performs an inverseprojection using 2D lane CV coordinates detected by the lane detector920 and a depth value corresponding to the 2D lane CV coordinates on thedominant plane calculated by the dominant plane calculator 936. Theshort-distance road model generator 953 generates a 3D short-distanceroad model based on a result of the inverse projection. The 3Dshort-distance road model includes, for example, a 3D lane marking and acenter line of a lane.

The long-distance road model generator 956 expands the 3D short-distanceroad model generated by the short-distance road model generator 953 to along distance and generates a 3D long-distance road model. In thisexample, the 3D long-distance road model is generated based on the roadshape information generated by the road shape information extractor 940.Height information that is not included in 2D map information isgenerated by projecting the road shape information to the dominantplane.

The apparatuses, units, modules, devices, and other components describedherein, such as processor 900, information acquirer 910, lane detector920, dominant plane generator 930, road shape information extractor 940,and 3D road model generator 950 are implemented by hardware components.Examples of hardware components include controllers, sensors,generators, drivers, and any other electronic components known to one ofordinary skill in the art. In one example, the hardware components areimplemented by one or more processors or computers. A processor orcomputer is implemented by one or more processing elements, such as anarray of logic gates, a controller and an arithmetic logic unit, adigital signal processor, a microcomputer, a programmable logiccontroller, a field-programmable gate array, a programmable logic array,a microprocessor, or any other device or combination of devices known toone of ordinary skill in the art that is capable of responding to andexecuting instructions in a defined manner to achieve a desired result.In one example, a processor or computer includes, or is connected to,one or more memories storing instructions or software that are executedby the processor or computer. Hardware components implemented by aprocessor or computer execute instructions or software, such as anoperating system (OS) and one or more software applications that run onthe OS, to perform the operations described herein. The hardwarecomponents also access, manipulate, process, create, and store data inresponse to execution of the instructions or software. For simplicity,the singular term “processor” or “computer” may be used in thedescription of the examples described herein, but in other examplesmultiple processors or computers are used, or a processor or computerincludes multiple processing elements, or multiple types of processingelements, or both. In one example, a hardware component includesmultiple processors, and in another example, a hardware componentincludes a processor and a controller. A hardware component has any oneor more of different processing configurations, examples of whichinclude a single processor, independent processors, parallel processors,single-instruction single-data (SISD) multiprocessing,single-instruction multiple-data (SIMD) multiprocessing,multiple-instruction single-data (MISD) multiprocessing, andmultiple-instruction multiple-data (MIMD) multiprocessing.

Instructions or software to control a processor or computer to implementthe hardware components and perform the methods as described above arewritten as computer programs, code segments, instructions or anycombination thereof, for individually or collectively instructing orconfiguring the processor or computer to operate as a machine orspecial-purpose computer to perform the operations performed by thehardware components and the methods as described above. In one example,the instructions or software include machine code that is directlyexecuted by the processor or computer, such as machine code produced bya compiler. In another example, the instructions or software includehigher-level code that is executed by the processor or computer using aninterpreter. Programmers of ordinary skill in the art can readily writethe instructions or software based on the block diagrams and the flowcharts illustrated in the drawings and the corresponding descriptions inthe specification, which disclose algorithms for performing theoperations performed by the hardware components and the methods asdescribed above.

The instructions or software to control a processor or computer toimplement the hardware components and perform the methods as describedabove, and any associated data, data files, and data structures, arerecorded, stored, or fixed in or on one or more non-transitorycomputer-readable storage media. Examples of a non-transitorycomputer-readable storage medium include read-only memory (ROM),random-access memory (RAM), flash memory, CD-ROMs, CD-Rs, CD+Rs, CD-RWs,CD+RWs, DVD-ROMs, DVD-Rs, DVD+Rs, DVD-RWs, DVD+RWs, DVD-RAMs, BD-ROMs,BD-Rs, BD-R LTHs, BD-REs, magnetic tapes, floppy disks, magneto-opticaldata storage devices, optical data storage devices, hard disks,solid-state disks, and any device known to one of ordinary skill in theart that is capable of storing the instructions or software and anyassociated data, data files, and data structures in a non-transitorymanner and providing the instructions or software and any associateddata, data files, and data structures to a processor or computer so thatthe processor or computer can execute the instructions. In one example,the instructions or software and any associated data, data files, anddata structures are distributed over network-coupled computer systems sothat the instructions and software and any associated data, data files,and data structures are stored, accessed, and executed in a distributedfashion by the processor or computer.

While this disclosure includes specific examples, it will be apparentafter an understanding of the disclosure of this application thatvarious changes in form and details may be made in these exampleswithout departing from the spirit and scope of the claims and theirequivalents. The examples described herein are to be considered in adescriptive sense only, and not for purposes of limitation. Descriptionsof features or aspects in each example are to be considered as beingapplicable to similar features or aspects in other examples. Suitableresults may be achieved if the described techniques are performed in adifferent order, and/or if components in a described system,architecture, device, or circuit are combined in a different manner,and/or replaced or supplemented by other components or theirequivalents. Therefore, the scope of the disclosure is defined not bythe detailed description, but by the claims and their equivalents, andall variations within the scope of the claims and their equivalents areto be construed as being included in the disclosure.

What is claimed is:
 1. A method of generating a three-dimensional (3D)lane model, the method comprising: generating a dominant planeindicating plane information of a road based on a depth information of adriving-allowed area of a vehicle on a driving image and a depth mapcorresponding to a front of the vehicle; generating road shapeinformation of the road based on travel route information of the vehicleacquired from map information; generating a 3D short-distance road modelbased on the dominant plane; acquiring height information from thedominant plane; and generating a 3D long-distance road model byprojecting a result of matching the height information, the road shapeinformation, and the 3D short-distance road model onto the dominantplane.
 2. The method of claim 1, wherein the driving-allowed area isacquired by: acquiring the driving image from the camera included in thevehicle; generating a depth map including depth informationcorresponding to a visual field criterion of the front of the vehicle;and calculating the driving-allowed area based on the driving image andthe depth map.
 3. The method of claim 1, wherein the generating of theroad shape information further comprises: extracting the road shapeinformation from the driving image, the road shape information includingany one or any combination of any two or more of a surface of the road,a lane marking on the road, and a center line of the road.
 4. The methodof claim 3, wherein the generating of the 3D short-distance road modelcomprises: generating 3D coordinates based on two-dimensional (2D)coordinates of vertices configuring the lane marking and depthinformation corresponding to the 2D coordinates of the vertices on thedominant plane; generating 3D lane information by performing inverseprojection on the generated 3D coordinates; and generating the 3Dshort-distance road model based on the 3D lane information.
 5. Themethod of claim 3, wherein the extracting of the road shape informationcomprises: acquiring location information including either one or bothof current location information of the vehicle and direction informationof the vehicle; and extracting the road shape information currentlyviewed by the camera based on the location information and camerainformation included in the driving image.
 6. The method of claim 5,wherein the acquiring of the location information comprises: acquiringthe travel route information based on a starting point and a destinationof the vehicle from the map information; and acquiring the locationinformation including either one or both of the current locationinformation of the vehicle and the direction information of the vehicle,based on the travel route information.
 7. The method of claim 5, whereinthe extracting of the road shape information comprises extracting theroad shape information entering a viewing frustum of the camera from themap information based on the location information and the camerainformation included in the driving image.
 8. The method of claim 1,wherein the acquiring the height information comprises: acquiring theheight information by projecting 2D coordinates obtained from the 2D mapto the dominant plane.
 9. The method of claim 1, wherein the matchingcomprises matching the road shape information and the 3D short-distanceroad model using a least square method (LSM).
 10. The method of claim 1,wherein the generating of the dominant plane comprises generating thedominant plane based on a depth map corresponding to a front of thevehicle.
 11. A non-transitory computer-readable storage medium storinginstructions that, when executed by one or more processors, cause theone or more processors to perform the method of claim
 1. 12. Anapparatus for generating a three-dimensional (3D) road model, theapparatus comprising: a camera configured to capture a driving imagefrom a vehicle; and one or more processors configured to: generate adominant plane indicating plane information of a road based on a depthinformation of a driving-allowed area of a vehicle on a driving imageand a depth map corresponding to a front of the vehicle; generate roadshape information of the road based on travel route information of thevehicle acquired from map information; generate a 3D short-distance roadmodel based on the dominant plane; acquire height information from thedominant plane; and generate a 3D long-distance road model by projectinga result of matching the height information, the road shape information,and the 3D short-distance road model onto the dominant plane.
 13. Theapparatus of claim 12, wherein the apparatus comprises at least one of ahead-up display (HUD) apparatus, a three-dimensional (3D) digitalinformation display (DID), a navigation apparatus, a 3D mobileapparatus, a smartphone, a smart television (TV), and a smart vehicle.